// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router'
import axios from 'axios'
import { cat } from 'shelljs';
import myaxios from './mytools/myaxios'
import dateTools from  './mytools/dateTools'
import cookesTools from  './mytools/cookesTools'


Vue.config.productionTip = false
Vue.use(ElementUI);
// const axiosObj=axios;
Vue.prototype.$axios=axios;
 Vue.prototype.$ApiBaseUrl="http://localhost:36394/api/";

Vue.prototype.$myaxios=myaxios;
Vue.prototype.$dateTools=dateTools;
Vue.prototype.$cookesTools=cookesTools;

router.addRoute(  {
  path: '/role',
  name: 'RoleManager',
  component: () => import('./components/RoleManager.vue')
});

router.addRoute(  {
  path: '/adminuser',
  name: 'AdminUserManager',
  component: () => import('./components/AdminUserManager.vue')
});

router.addRoute(  {
  path: '/module',
  name: 'ModuleManager',
  component: () => import('./components/ModuleManager.vue')
});
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
